package org.chen.mybatis.handler;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * 数据类型处理器
 *
 * @author Chen
 * @since 2023/6/9 13:54
 */
public interface TypeHandler<T> {

    void setParameter(PreparedStatement statement, int i, T value) throws SQLException;

    T getResult(ResultSet rs, String columnName) throws SQLException;
}
